// 服务路由
const TileSer = require('../service/tile/tile.js')

const routes = [
  {
    path: '/tile/task/download',
    name: 'tile',
    service: TileSer,
    method: 'post',
    action: 'createTask'
  },
  {
    path: '/tile/task/stop',
    name: 'tile',
    service: TileSer,
    method: 'post',
    action: 'stop'
  },
  {
    path: '/tile/task/stop/:key',
    name: 'tile',
    service: TileSer,
    method: 'post',
    action: 'stopTask'
  },
  {
    path: '/tile/task/resume/:key',
    name: 'tile',
    service: TileSer,
    method: 'post',
    action: 'resumeTask'
  },
  {
    path: '/tile/task/delete/:key',
    name: 'tile',
    service: TileSer,
    method: 'post',
    action: 'deleteTask'
  },
  {
    path: '/tile/task/query',
    name: 'tile',
    service: TileSer,
    method: 'get',
    action: 'query'
  }
]

module.exports = routes